// --------------------------------------------------------------------------------------------------------------------
// <copyright file="CurrentlySelectedSearchResultMessage.cs" company="XamlmNinja">
//   2010
// </copyright>
// --------------------------------------------------------------------------------------------------------------------

namespace ReplayLastMessageMessenger.ViewModel.Messages
{
    using System;

    using ReplayLastMessageMessenger.Model;

    /// <summary>
    /// The currently selected search result message.
    /// </summary>
    public class SelectedPersonMessage : BaseMessage
    {
        #region Constants and Fields

        /// <summary>
        /// The person.
        /// </summary>
        private readonly Person person;

        #endregion

        #region Constructors and Destructors

        /// <summary>
        /// Initializes a new instance of the <see cref="SelectedPersonMessage"/> class.
        /// </summary>
        /// <param name="person">
        /// The person.
        /// </param>
        public SelectedPersonMessage(Person person)
        {
            this.person = person;
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="SelectedPersonMessage"/> class.
        /// </summary>
        /// <param name="exception">
        /// The exception.
        /// </param>
        public SelectedPersonMessage(Exception exception)
        {
            this.Exception = exception;
        }

        #endregion

        #region Properties

        /// <summary>
        /// Gets person.
        /// </summary>
        public Person Person
        {
            get
            {
                return this.person;
            }
        }

        #endregion
    }
}